package com.blog.effective.note1;

import java.util.HashMap;

/**
 * Created by 张俊强~ on 2017/10/27.
 */
public class EffectiveJavaDemoTwo {

    public static void main(String[] args){

        MyHashMap<String,String> mhm=MyHashMap.newInstance();

    }

}

class MyHashMap<K,V> extends HashMap<K,V> {

    private MyHashMap(){
        super();
    }

    public static <K,V> MyHashMap<K,V> newInstance(){
        return new MyHashMap<K,V>();
    }
}
